import request from "@/utils/http"

// 获取商品详情
export const getGoodsDetail = (id) => {
  return request.get('/goods', {
    params: {
      id
    }
  })
}


export const fetchHotGoodsAPI = ({ id, type, limit = 3 }) => {
  return request({
    url:'/goods/hot',
    params:{
      id, 
      type, 
      limit
    }
  })
}